package com.subang.function.mapper;

import java.util.List;
import com.subang.function.domain.SbAnswerRecord;

/**
 * 答题记录Mapper接口
 * 
 * @author subei
 * @date 2025-04-22
 */
public interface SbAnswerRecordMapper 
{
    /**
     * 查询答题记录
     * 
     * @param id 答题记录主键
     * @return 答题记录
     */
    public SbAnswerRecord selectSbAnswerRecordById(Long id);

    /**
     * 查询答题记录列表
     * 
     * @param sbAnswerRecord 答题记录
     * @return 答题记录集合
     */
    public List<SbAnswerRecord> selectSbAnswerRecordList(SbAnswerRecord sbAnswerRecord);

    /**
     * 新增答题记录
     * 
     * @param sbAnswerRecord 答题记录
     * @return 结果
     */
    public int insertSbAnswerRecord(SbAnswerRecord sbAnswerRecord);

    /**
     * 修改答题记录
     * 
     * @param sbAnswerRecord 答题记录
     * @return 结果
     */
    public int updateSbAnswerRecord(SbAnswerRecord sbAnswerRecord);

    /**
     * 删除答题记录
     * 
     * @param id 答题记录主键
     * @return 结果
     */
    public int deleteSbAnswerRecordById(Long id);

    /**
     * 批量删除答题记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSbAnswerRecordByIds(Long[] ids);
}
